<template>
  <div class="">
    <input type="text" @keydown.enter="add" v-model="title" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      title: "",
    };
  },
  mounted() {},
  methods: {
    add() {
      this.$store.commit("add", this.title);
      this.title = "";
    },
  },
  components: {},
};
</script>

<style lang="scss"></style>
